const re1 = /abc/ig;
const message = "fdabc21 faBc323 dfABC12 AaaBc32";

const result=message.split(re1)
console.log(result)  //[ 'fd', '21 f', '323 df', '12 Aa', '32' ]